import sys
import os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from config import HOST
from api import log
class ApiTender:
    def __init__(self, session):
        self.__url_api_tender = HOST + '/trust/trust/tender'
        self.session = session 
    #投资方法
    def api_tender(self, amount):
        data = {
            "id":642,
            "depositCertificate":-1,
            "amount":amount,
            
        }
        return self.session.post(url = self.__url_api_tender, data = data)
        